package homework;

import java.util.Scanner;

public class Java语言基础5 {

	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		System.out.print("请输入圆柱体的底面半径:");
		double r = sc.nextDouble();
		System.out.print("请输入圆柱体的高:");
		double h = sc.nextDouble();
		double area=2* Math.PI * r *(r+h);
		double V = Math.PI * r * r* h;
		System.out.println("圆柱体的表面积："+ area);
		System.out.println("圆柱体的体积为："+ V);



	}

}
